package core.command
{
	import core.event.SocketEventID;
	import core.event.UnoEvent;
	import core.event.ViewEventID;

	public class GameOverCommand extends SuperCommand
	{
		public function GameOverCommand()
		{
			socketEvent = SocketEventID.GAME_OVER;
			viewEvent = ViewEventID.GAME_OVER;
		}
		
		override public function success(e:UnoEvent):void
		{
			var table:Object = db.tableList[e.data.tableID];
			table["gameOver"] = "1";
			table["result"] = e.data.result;
		}
	}
}